home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
CIncludes
/
HIEditText.xh
< prev
next >
Wrap
Text File
|
1996-05-01
|
52KB
|
1,739 lines
/*
* This file was generated by the SOM Compiler.
* FileName: HIEditText.xh.
* Generated using:
* SOM Precompiler somipc: 2.18
* SOM Emitter emitxh.dll: 2.33
*/
#ifndef SOM_HIEditText_xh
#define SOM_HIEditText_xh
class HIEditText;
#define HIEditText_MajorVersion 0
#define HIEditText_MinorVersion 0
/*
* Passthru lines: File: "C.xh", "before"
*/
#include <Types.h>
#include <Collections.h>
#include <Drag.h>
#include <Events.h>
#include <Quickdraw.h>
#include <TextObjects.h>
#include <TextCommon.h>
#include <TextEngineTypes.h>
#include <TextEngineSystem.h>
#include <TextCommon.h>
#include <MixedMode.h>
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_HIPanel_xh
#include <HIPanels.xh>
#endif
#ifndef HIEditText_API
#define HIEditText_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
class SOMClass;
class SOMObject;
class HIWindow;
class HIEmbeddingPanel;
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define HIEditTextCClassData HIEditTextClassData
#define HIEditTextNewClass(major,minor) somNewVersionedClassReference(HIEditText,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HIEditTextMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the HIEditText class object, and the methods it introduces. */
SOMEXTERN struct HIEditTextClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitEditTextPanel;
somMToken GetTextEngine;
somMToken IsTextReadOnly;
somMToken IsTextSelectable;
somMToken IsTextMaskable;
somMToken MakeTextReadOnly;
somMToken EnableSelection;
somMToken SetTextBounds;
somMToken GetTextBounds;
somMToken SetMargins;
somMToken GetMargins;
somMToken ReplaceTextByTextObject;
somMToken RepalceSelectionByTextObject;
somMToken DeleteText;
somMToken ExtractText;
somMToken SetTextFont;
somMToken SetTextSize;
somMToken SetTextQDFace;
somMToken SetTextColor;
somMToken SetTextAlignment;
somMToken GetTextFont;
somMToken GetTextSize;
somMToken GetTextQDFace;
somMToken GetTextColor;
somMToken GetTextAlignment;
somMToken SetOneTextAttribute;
somMToken GetOneTextAttribute;
somMToken EnableDrawText;
somMToken DisableDrawText;
somMToken IsDrawTextEnabled;
somMToken SetDirtyFlag;
somMToken ResetDirtyFlag;
somMToken IsPanelDirty;
somMToken reserved0;
somMToken reserved1;
somMToken reserved2;
somMToken GetSelection;
somMToken SetSelection;
somMToken RevealText;
somMToken CreateTextAttributeIterator;
somMToken TextAttrIteratorGetNextRange;
somMToken DisposeTextAttrIterator;
somMToken SetTheTextAttribute;
somMToken GetContinuousTextAttribute;
somMToken EnableUICommandInPanel;
somMToken IsUICommandEnabledInPanel;
somMToken DisableUICommandInPanel;
somMToken KeyboardLanguageChanged;
somMToken ScrollText;
somMToken GetScrollTextAmount;
somMToken SetMouseDownTrackActionRoutine;
} SOMDLINK HIEditTextClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HIEditText_Class_Source) && !defined(SOM_Module_hiedittext_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HIEditTextClassData
#endif
#endif
/*
* -- Typedefs for HIEditText Method Procedures
*/
SOMEXTERN {
typedef OSStatus (* SOMLINK somTD_HIEditText_InitEditTextPanel)(HIEditText *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
TextEngineID textEngine,
TextEngineOptions textEngineOptions);
typedef OSStatus (* SOMLINK somTD_HIEditText_GetTextEngine)(HIEditText *somSelf, Environment *ev,
TSystemTextEngine** theEngine);
typedef boolean (* SOMLINK somTD_HIEditText_IsTextReadOnly)(HIEditText *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIEditText_MakeTextReadOnly)(HIEditText *somSelf, Environment *ev,
boolean readOnly);
typedef OSStatus (* SOMLINK somTD_HIEditText_EnableSelection)(HIEditText *somSelf, Environment *ev,
boolean enableIt);
typedef boolean (* SOMLINK somTD_HIEditText_IsTextSelectable)(HIEditText *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIEditText_IsTextMaskable)(HIEditText *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIEditText_SetTextBounds)(HIEditText *somSelf, Environment *ev,
UInt32 width,
UInt32 height);
typedef OSStatus (* SOMLINK somTD_HIEditText_GetTextBounds)(HIEditText *somSelf, Environment *ev,
UInt32* width,
UInt32* height);
typedef OSStatus (* SOMLINK somTD_HIEditText_SetMargins)(HIEditText *somSelf, Environment *ev,
Rect* marginOffsets);
typedef OSStatus (* SOMLINK somTD_HIEditText_GetMargins)(HIEditText *somSelf, Environment *ev,
Rect* marginOffsets);
typedef OSStatus (* SOMLINK somTD_HIEditText_ReplaceTextByTextObject)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextObject theText);
typedef OSStatus (* SOMLINK somTD_HIEditText_RepalceSelectionByTextObject)(HIEditText *somSelf, Environment *ev,
TextObject theText);
typedef OSStatus (* SOMLINK somTD_HIEditText_DeleteText)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex);
typedef OSStatus (* SOMLINK somTD_HIEditText_ExtractText)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextObject* newTextObject);
typedef OSStatus (* SOMLINK somTD_HIEditText_SetTextFont)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
Str255 fontName);
typedef OSStatus (* SOMLINK somTD_HIEditText_SetTextSize)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
UInt16 textSize);
typedef OSStatus (* SOMLINK somTD_HIEditText_SetTextQDFace)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextFontFace theQDFace,
boolean switchIt);
typedef OSStatus (* SOMLINK somTD_HIEditText_SetTextColor)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
RGBColor* theColor);
typedef OSStatus (* SOMLINK somTD_HIEditText_SetTextAlignment)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextAlignment align);
typedef OSStatus (* SOMLINK somTD_HIEditText_GetTextFont)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
Str255* fontName);
typedef OSStatus (* SOMLINK somTD_HIEditText_GetTextSize)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
UInt16* textSize);
typedef OSStatus (* SOMLINK somTD_HIEditText_GetTextQDFace)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextFontFace* theQDFace);
typedef OSStatus (* SOMLINK somTD_HIEditText_GetTextColor)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
RGBColor* theColor);
typedef OSStatus (* SOMLINK somTD_HIEditText_GetTextAlignment)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextAlignment* align);
typedef OSStatus (* SOMLINK somTD_HIEditText_SetOneTextAttribute)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextAttributeTag theAttribute,
void* theValuePtr,
ByteCount theValueSize);
typedef OSStatus (* SOMLINK somTD_HIEditText_GetOneTextAttribute)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextAttributeTag theAttribute,
ByteCount theAvailableSize,
void** theValuePtr,
ByteCount* theValueSize);
typedef OSStatus (* SOMLINK somTD_HIEditText_EnableDrawText)(HIEditText *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIEditText_DisableDrawText)(HIEditText *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIEditText_IsDrawTextEnabled)(HIEditText *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIEditText_SetDirtyFlag)(HIEditText *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIEditText_ResetDirtyFlag)(HIEditText *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIEditText_IsPanelDirty)(HIEditText *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIEditText_GetSelection)(HIEditText *somSelf, Environment *ev,
ByteOffset* startIndex,
ByteOffset* endIndex);
typedef OSStatus (* SOMLINK somTD_HIEditText_SetSelection)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex);
typedef OSStatus (* SOMLINK somTD_HIEditText_RevealText)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
boolean revealBegin);
typedef OSStatus (* SOMLINK somTD_HIEditText_CreateTextAttributeIterator)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
Collection textAttributeFilterCollection,
TextAttributeIteratorRef* iterationRef);
typedef OSStatus (* SOMLINK somTD_HIEditText_TextAttrIteratorGetNextRange)(HIEditText *somSelf, Environment *ev,
TextAttributeIteratorRef iterationRef,
ByteOffset* startIndex,
ByteOffset* endIndex,
Collection textAttrCollection);
typedef OSStatus (* SOMLINK somTD_HIEditText_DisposeTextAttrIterator)(HIEditText *somSelf, Environment *ev,
TextAttributeIteratorRef theIterator);
typedef OSStatus (* SOMLINK somTD_HIEditText_SetTheTextAttribute)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
Collection textAttrCollection);
typedef OSStatus (* SOMLINK somTD_HIEditText_GetContinuousTextAttribute)(HIEditText *somSelf, Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
Collection textAttrCollection);
typedef OSStatus (* SOMLINK somTD_HIEditText_EnableUICommandInPanel)(HIEditText *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIEditText_DisableUICommandInPanel)(HIEditText *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIEditText_IsUICommandEnabledInPanel)(HIEditText *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIEditText_KeyboardLanguageChanged)(HIEditText *somSelf, Environment *ev,
LocaleIdentifier theLocaleID);
typedef OSStatus (* SOMLINK somTD_HIEditText_ScrollText)(HIEditText *somSelf, Environment *ev,
UInt32 dh,
UInt32 dv);
typedef OSStatus (* SOMLINK somTD_HIEditText_GetScrollTextAmount)(HIEditText *somSelf, Environment *ev,
UInt32* dh,
UInt32* dv);
typedef OSStatus (* SOMLINK somTD_HIEditText_SetMouseDownTrackActionRoutine)(HIEditText *somSelf, Environment *ev,
MouseDownInTextPanelTrackProcPtr theMouseTrackProcPtr,
void* userData);
/*
* -- Typedefs for Inherited Methods
*/
typedef HIEmbeddingPanel* (* SOMLINK somTD_HIEditText_GetEmbeddingParent)(HIEditText *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIEditText_InitPanel)(HIEditText *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
typedef OSStatus (* SOMLINK somTD_HIEditText_RegisterInterestInAppleEvent)(HIEditText *somSelf, Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting);
typedef boolean (* SOMLINK somTD_HIEditText_HasValidContent)(HIEditText *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIEditText_GetDeepCollectionItemData)(HIEditText *somSelf, Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData);
typedef HIWindow* (* SOMLINK somTD_HIEditText_GetWindow)(HIEditText *somSelf, Environment *ev);
typedef CGrafPtr (* SOMLINK somTD_HIEditText_GetPort)(HIEditText *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIEditText_GetRefLabel)(HIEditText *somSelf, Environment *ev,
RefLabel* identifier);
typedef Collection (* SOMLINK somTD_HIEditText_GetCollection)(HIEditText *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIEditText_Init)(HIEditText *somSelf, Environment *ev,
RefLabel* identifier,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIEditText_Terminate)(HIEditText *somSelf, Environment *ev);
typedef HIObject* (* SOMLINK somTD_HIEditText_Clone)(HIEditText *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIEditText_Release)(HIEditText *somSelf, Environment *ev);
typedef ItemCount (* SOMLINK somTD_HIEditText_GetOwnerCount)(HIEditText *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIEditText_InitFromAERecord)(HIEditText *somSelf, Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat);
typedef OSStatus (* SOMLINK somTD_HIEditText_WriteToAERecord)(HIEditText *somSelf, Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat);
typedef void (* SOMLINK somTD_HIEditText_CalculateOptimalSize)(HIEditText *somSelf, Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight);
typedef void (* SOMLINK somTD_HIEditText_GetBoundingRect)(HIEditText *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect);
typedef void (* SOMLINK somTD_HIEditText_SetBoundingRect)(HIEditText *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect);
typedef void (* SOMLINK somTD_HIEditText_SetPosition)(HIEditText *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition);
typedef void (* SOMLINK somTD_HIEditText_SetSize)(HIEditText *somSelf, Environment *ev,
SInt16 width,
SInt16 height);
typedef void (* SOMLINK somTD_HIEditText_GetUpdateRect)(HIEditText *somSelf, Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect);
typedef void (* SOMLINK somTD_HIEditText_Enable)(HIEditText *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIEditText_Disable)(HIEditText *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIEditText_IsEnabled)(HIEditText *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIEditText_Show)(HIEditText *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIEditText_Hide)(HIEditText *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIEditText_IsVisible)(HIEditText *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIEditText_HandleAppleEvent)(HIEditText *somSelf, Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIEditText_HandleActivate)(HIEditText *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIEditText_HandleDeactivate)(HIEditText *somSelf, Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIEditText_HandleNavigation)(HIEditText *somSelf, Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIEditText_HandleMouseDownInContent)(HIEditText *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIEditText_HandleMouseMovedInContent)(HIEditText *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIEditText_HandleMouseStoppedMovingInContent)(HIEditText *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef OSStatus (* SOMLINK somTD_HIEditText_HandleMouseUpInContent)(HIEditText *somSelf, Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef);
typedef void (* SOMLINK somTD_HIEditText_TakeUserInputFocus)(HIEditText *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIEditText_ReleaseUserInputFocus)(HIEditText *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIEditText_HasUserInputFocus)(HIEditText *somSelf, Environment *ev);
typedef boolean (* SOMLINK somTD_HIEditText_CanReleaseUserInputFocus)(HIEditText *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIEditText_SetUserInputFocusFlags)(HIEditText *somSelf, Environment *ev,
HIUserInputFocusFlags flags);
typedef HIUserInputFocusFlags (* SOMLINK somTD_HIEditText_GetUserInputFocusFlags)(HIEditText *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIEditText_SetTitle)(HIEditText *somSelf, Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags);
typedef OSStatus (* SOMLINK somTD_HIEditText_GetTitle)(HIEditText *somSelf, Environment *ev,
HIImageRef* title);
typedef void (* SOMLINK somTD_HIEditText_Draw)(HIEditText *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIEditText_Erase)(HIEditText *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn);
typedef void (* SOMLINK somTD_HIEditText_Invalidate)(HIEditText *somSelf, Environment *ev);
typedef HIDrawingMode (* SOMLINK somTD_HIEditText_GetDrawingMode)(HIEditText *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIEditText_SetDrawingMode)(HIEditText *somSelf, Environment *ev,
HIDrawingMode drawingMode);
typedef void (* SOMLINK somTD_HIEditText_SetBackgroundPattern)(HIEditText *somSelf, Environment *ev,
PixPatHandle backgroundPattern);
typedef PixPatHandle (* SOMLINK somTD_HIEditText_GetBackgroundPattern)(HIEditText *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIEditText_Cut)(HIEditText *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIEditText_Copy)(HIEditText *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIEditText_Paste)(HIEditText *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIEditText_Clear)(HIEditText *somSelf, Environment *ev);
typedef HIClipboardSupportFlags (* SOMLINK somTD_HIEditText_GetClipboardSupportFlags)(HIEditText *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_HIEditText_AddStateChangeCallback)(HIEditText *somSelf, Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef);
typedef OSStatus (* SOMLINK somTD_HIEditText_RemoveStateChangeCallback)(HIEditText *somSelf, Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove);
typedef OSStatus (* SOMLINK somTD_HIEditText_GetHIObjectFromRefLabel)(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects);
typedef OSStatus (* SOMLINK somTD_HIEditText_GetNewHIObject)(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject);
typedef OSStatus (* SOMLINK somTD_HIEditText_GetNewHIObjectFromResource)(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject);
typedef void (* SOMLINK somTD_HIEditText_DrawContent)(HIEditText *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn);
typedef void (* SOMLINK somTD_HIEditText_EraseContent)(HIEditText *somSelf, Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase);
typedef void (* SOMLINK somTD_HIEditText_TranslatePoint)(HIEditText *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint);
typedef void (* SOMLINK somTD_HIEditText_TranslateRect)(HIEditText *somSelf, Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect);
typedef void (* SOMLINK somTD_HIEditText_StateChanged)(HIEditText *somSelf, Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode);
typedef void (* SOMLINK somTD_HIEditText_SetClipboardSupportFlags)(HIEditText *somSelf, Environment *ev,
HIClipboardSupportFlags flags);
typedef OSStatus (* SOMLINK somTD_HIEditText_Verify)(HIEditText *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_HIEditText_somInit)(HIEditText *somSelf);
typedef void (* SOMLINK somTD_HIEditText_somUninit)(HIEditText *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIEditText_somDuplicateReference)(HIEditText *somSelf);
typedef boolean (* SOMLINK somTD_HIEditText_somCompareReference)(HIEditText *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_HIEditText_somRelease)(HIEditText *somSelf);
typedef void (* SOMLINK somTD_HIEditText_somFree)(HIEditText *somSelf);
typedef boolean (* SOMLINK somTD_HIEditText_somCanDelete)(HIEditText *somSelf);
typedef SOMClass* (* SOMLINK somTD_HIEditText_somGetClass)(HIEditText *somSelf);
typedef corbastring (* SOMLINK somTD_HIEditText_somGetClassName)(HIEditText *somSelf);
typedef long (* SOMLINK somTD_HIEditText_somGetSize)(HIEditText *somSelf);
typedef boolean (* SOMLINK somTD_HIEditText_somIsA)(HIEditText *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIEditText_somRespondsTo)(HIEditText *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_HIEditText_somIsInstanceOf)(HIEditText *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_HIEditText_somDispatch)(HIEditText *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIEditText_somClassDispatch)(HIEditText *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_HIEditText_somCastObj)(HIEditText *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_HIEditText_somResetObj)(HIEditText *somSelf);
typedef SOMObject* (* SOMLINK somTD_HIEditText_somPrintSelf)(HIEditText *somSelf);
typedef void (* SOMLINK somTD_HIEditText_somDumpSelf)(HIEditText *somSelf,
long level);
typedef void (* SOMLINK somTD_HIEditText_somDumpSelfInt)(HIEditText *somSelf,
long level);
}
#endif /* HIEditText_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for HIEditText
*/
class HIEditText : public HIPanel
{
public:
// HIEditText::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for HIEditText, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(HIEditText);
}
// HIEditText::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: InitEditTextPanel */
OSStatus InitEditTextPanel(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds,
TextEngineID textEngine,
TextEngineOptions textEngineOptions)
{
return SOM_ResolveD(this,HIEditText,HIEditText,InitEditTextPanel)
(this,ev,identifier,window,bounds,textEngine,textEngineOptions);
}
/* method: GetTextEngine */
OSStatus GetTextEngine(Environment *ev,
TSystemTextEngine** theEngine)
{
return SOM_ResolveD(this,HIEditText,HIEditText,GetTextEngine)
(this,ev,theEngine);
}
/* method: IsTextReadOnly */
boolean IsTextReadOnly(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIEditText,IsTextReadOnly)
(this,ev);
}
/* method: MakeTextReadOnly */
OSStatus MakeTextReadOnly(Environment *ev,
boolean readOnly)
{
return SOM_ResolveD(this,HIEditText,HIEditText,MakeTextReadOnly)
(this,ev,readOnly);
}
/* method: EnableSelection */
OSStatus EnableSelection(Environment *ev,
boolean enableIt)
{
return SOM_ResolveD(this,HIEditText,HIEditText,EnableSelection)
(this,ev,enableIt);
}
/* method: IsTextSelectable */
boolean IsTextSelectable(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIEditText,IsTextSelectable)
(this,ev);
}
/* method: IsTextMaskable */
boolean IsTextMaskable(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIEditText,IsTextMaskable)
(this,ev);
}
/* method: SetTextBounds */
OSStatus SetTextBounds(Environment *ev,
UInt32 width,
UInt32 height)
{
return SOM_ResolveD(this,HIEditText,HIEditText,SetTextBounds)
(this,ev,width,height);
}
/* method: GetTextBounds */
OSStatus GetTextBounds(Environment *ev,
UInt32* width,
UInt32* height)
{
return SOM_ResolveD(this,HIEditText,HIEditText,GetTextBounds)
(this,ev,width,height);
}
/* method: SetMargins */
OSStatus SetMargins(Environment *ev,
Rect* marginOffsets)
{
return SOM_ResolveD(this,HIEditText,HIEditText,SetMargins)
(this,ev,marginOffsets);
}
/* method: GetMargins */
OSStatus GetMargins(Environment *ev,
Rect* marginOffsets)
{
return SOM_ResolveD(this,HIEditText,HIEditText,GetMargins)
(this,ev,marginOffsets);
}
/* method: ReplaceTextByTextObject */
OSStatus ReplaceTextByTextObject(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextObject theText)
{
return SOM_ResolveD(this,HIEditText,HIEditText,ReplaceTextByTextObject)
(this,ev,startIndex,endIndex,theText);
}
/* method: RepalceSelectionByTextObject */
OSStatus RepalceSelectionByTextObject(Environment *ev,
TextObject theText)
{
return SOM_ResolveD(this,HIEditText,HIEditText,RepalceSelectionByTextObject)
(this,ev,theText);
}
/* method: DeleteText */
OSStatus DeleteText(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex)
{
return SOM_ResolveD(this,HIEditText,HIEditText,DeleteText)
(this,ev,startIndex,endIndex);
}
/* method: ExtractText */
OSStatus ExtractText(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextObject* newTextObject)
{
return SOM_ResolveD(this,HIEditText,HIEditText,ExtractText)
(this,ev,startIndex,endIndex,newTextObject);
}
/* method: SetTextFont */
OSStatus SetTextFont(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
Str255 fontName)
{
return SOM_ResolveD(this,HIEditText,HIEditText,SetTextFont)
(this,ev,startIndex,endIndex,fontName);
}
/* method: SetTextSize */
OSStatus SetTextSize(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
UInt16 textSize)
{
return SOM_ResolveD(this,HIEditText,HIEditText,SetTextSize)
(this,ev,startIndex,endIndex,textSize);
}
/* method: SetTextQDFace */
OSStatus SetTextQDFace(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextFontFace theQDFace,
boolean switchIt)
{
return SOM_ResolveD(this,HIEditText,HIEditText,SetTextQDFace)
(this,ev,startIndex,endIndex,theQDFace,switchIt);
}
/* method: SetTextColor */
OSStatus SetTextColor(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
RGBColor* theColor)
{
return SOM_ResolveD(this,HIEditText,HIEditText,SetTextColor)
(this,ev,startIndex,endIndex,theColor);
}
/* method: SetTextAlignment */
OSStatus SetTextAlignment(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextAlignment align)
{
return SOM_ResolveD(this,HIEditText,HIEditText,SetTextAlignment)
(this,ev,startIndex,endIndex,align);
}
/* method: GetTextFont */
OSStatus GetTextFont(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
Str255* fontName)
{
return SOM_ResolveD(this,HIEditText,HIEditText,GetTextFont)
(this,ev,startIndex,endIndex,fontName);
}
/* method: GetTextSize */
OSStatus GetTextSize(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
UInt16* textSize)
{
return SOM_ResolveD(this,HIEditText,HIEditText,GetTextSize)
(this,ev,startIndex,endIndex,textSize);
}
/* method: GetTextQDFace */
OSStatus GetTextQDFace(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextFontFace* theQDFace)
{
return SOM_ResolveD(this,HIEditText,HIEditText,GetTextQDFace)
(this,ev,startIndex,endIndex,theQDFace);
}
/* method: GetTextColor */
OSStatus GetTextColor(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
RGBColor* theColor)
{
return SOM_ResolveD(this,HIEditText,HIEditText,GetTextColor)
(this,ev,startIndex,endIndex,theColor);
}
/* method: GetTextAlignment */
OSStatus GetTextAlignment(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextAlignment* align)
{
return SOM_ResolveD(this,HIEditText,HIEditText,GetTextAlignment)
(this,ev,startIndex,endIndex,align);
}
/* method: SetOneTextAttribute */
OSStatus SetOneTextAttribute(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextAttributeTag theAttribute,
void* theValuePtr,
ByteCount theValueSize)
{
return SOM_ResolveD(this,HIEditText,HIEditText,SetOneTextAttribute)
(this,ev,startIndex,endIndex,theAttribute,theValuePtr,theValueSize);
}
/* method: GetOneTextAttribute */
OSStatus GetOneTextAttribute(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
TextAttributeTag theAttribute,
ByteCount theAvailableSize,
void** theValuePtr,
ByteCount* theValueSize)
{
return SOM_ResolveD(this,HIEditText,HIEditText,GetOneTextAttribute)
(this,ev,startIndex,endIndex,theAttribute,theAvailableSize,theValuePtr,theValueSize);
}
/* method: EnableDrawText */
OSStatus EnableDrawText(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIEditText,EnableDrawText)
(this,ev);
}
/* method: DisableDrawText */
OSStatus DisableDrawText(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIEditText,DisableDrawText)
(this,ev);
}
/* method: IsDrawTextEnabled */
boolean IsDrawTextEnabled(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIEditText,IsDrawTextEnabled)
(this,ev);
}
/* method: SetDirtyFlag */
OSStatus SetDirtyFlag(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIEditText,SetDirtyFlag)
(this,ev);
}
/* method: ResetDirtyFlag */
OSStatus ResetDirtyFlag(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIEditText,ResetDirtyFlag)
(this,ev);
}
/* method: IsPanelDirty */
boolean IsPanelDirty(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIEditText,IsPanelDirty)
(this,ev);
}
/* method: GetSelection */
OSStatus GetSelection(Environment *ev,
ByteOffset* startIndex,
ByteOffset* endIndex)
{
return SOM_ResolveD(this,HIEditText,HIEditText,GetSelection)
(this,ev,startIndex,endIndex);
}
/* method: SetSelection */
OSStatus SetSelection(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex)
{
return SOM_ResolveD(this,HIEditText,HIEditText,SetSelection)
(this,ev,startIndex,endIndex);
}
/* method: RevealText */
OSStatus RevealText(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
boolean revealBegin)
{
return SOM_ResolveD(this,HIEditText,HIEditText,RevealText)
(this,ev,startIndex,endIndex,revealBegin);
}
/* method: CreateTextAttributeIterator */
OSStatus CreateTextAttributeIterator(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
Collection textAttributeFilterCollection,
TextAttributeIteratorRef* iterationRef)
{
return SOM_ResolveD(this,HIEditText,HIEditText,CreateTextAttributeIterator)
(this,ev,startIndex,endIndex,textAttributeFilterCollection,iterationRef);
}
/* method: TextAttrIteratorGetNextRange */
OSStatus TextAttrIteratorGetNextRange(Environment *ev,
TextAttributeIteratorRef iterationRef,
ByteOffset* startIndex,
ByteOffset* endIndex,
Collection textAttrCollection)
{
return SOM_ResolveD(this,HIEditText,HIEditText,TextAttrIteratorGetNextRange)
(this,ev,iterationRef,startIndex,endIndex,textAttrCollection);
}
/* method: DisposeTextAttrIterator */
OSStatus DisposeTextAttrIterator(Environment *ev,
TextAttributeIteratorRef theIterator)
{
return SOM_ResolveD(this,HIEditText,HIEditText,DisposeTextAttrIterator)
(this,ev,theIterator);
}
/* method: SetTheTextAttribute */
OSStatus SetTheTextAttribute(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
Collection textAttrCollection)
{
return SOM_ResolveD(this,HIEditText,HIEditText,SetTheTextAttribute)
(this,ev,startIndex,endIndex,textAttrCollection);
}
/* method: GetContinuousTextAttribute */
OSStatus GetContinuousTextAttribute(Environment *ev,
ByteOffset startIndex,
ByteOffset endIndex,
Collection textAttrCollection)
{
return SOM_ResolveD(this,HIEditText,HIEditText,GetContinuousTextAttribute)
(this,ev,startIndex,endIndex,textAttrCollection);
}
/* method: EnableUICommandInPanel */
OSStatus EnableUICommandInPanel(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIEditText,EnableUICommandInPanel)
(this,ev);
}
/* method: DisableUICommandInPanel */
OSStatus DisableUICommandInPanel(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIEditText,DisableUICommandInPanel)
(this,ev);
}
/* method: IsUICommandEnabledInPanel */
boolean IsUICommandEnabledInPanel(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIEditText,IsUICommandEnabledInPanel)
(this,ev);
}
/* method: KeyboardLanguageChanged */
OSStatus KeyboardLanguageChanged(Environment *ev,
LocaleIdentifier theLocaleID)
{
return SOM_ResolveD(this,HIEditText,HIEditText,KeyboardLanguageChanged)
(this,ev,theLocaleID);
}
/* method: ScrollText */
OSStatus ScrollText(Environment *ev,
UInt32 dh,
UInt32 dv)
{
return SOM_ResolveD(this,HIEditText,HIEditText,ScrollText)
(this,ev,dh,dv);
}
/* method: GetScrollTextAmount */
OSStatus GetScrollTextAmount(Environment *ev,
UInt32* dh,
UInt32* dv)
{
return SOM_ResolveD(this,HIEditText,HIEditText,GetScrollTextAmount)
(this,ev,dh,dv);
}
/* method: SetMouseDownTrackActionRoutine */
OSStatus SetMouseDownTrackActionRoutine(Environment *ev,
MouseDownInTextPanelTrackProcPtr theMouseTrackProcPtr,
void* userData)
{
return SOM_ResolveD(this,HIEditText,HIEditText,SetMouseDownTrackActionRoutine)
(this,ev,theMouseTrackProcPtr,userData);
}
/*
* -- Inherited methods
*/
/* method: GetEmbeddingParent */
HIEmbeddingPanel* GetEmbeddingParent(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIPanel,GetEmbeddingParent)
(this,ev);
}
/* method: InitPanel */
OSStatus InitPanel(Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds)
{
return SOM_ResolveD(this,HIEditText,HIPanel,InitPanel)
(this,ev,identifier,window,bounds);
}
/* method: RegisterInterestInAppleEvent */
OSStatus RegisterInterestInAppleEvent(Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting)
{
return SOM_ResolveD(this,HIEditText,HIPanel,RegisterInterestInAppleEvent)
(this,ev,table,eventClass,eventID,eventRouting);
}
/* method: HasValidContent */
boolean HasValidContent(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIPanel,HasValidContent)
(this,ev);
}
/* method: GetDeepCollectionItemData */
OSStatus GetDeepCollectionItemData(Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData)
{
return SOM_ResolveD(this,HIEditText,HIPanel,GetDeepCollectionItemData)
(this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
}
/* method: GetWindow */
HIWindow* GetWindow(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIObject,GetWindow)
(this,ev);
}
/* method: GetPort */
CGrafPtr GetPort(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIObject,GetPort)
(this,ev);
}
/* method: GetRefLabel */
void GetRefLabel(Environment *ev,
RefLabel* identifier)
{
SOM_ResolveD(this,HIEditText,HIObject,GetRefLabel)
(this,ev,identifier);
}
/* method: GetCollection */
Collection GetCollection(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIObject,GetCollection)
(this,ev);
}
/* method: Init */
OSStatus Init(Environment *ev,
RefLabel* identifier,
Rect* boundingRect)
{
return SOM_ResolveD(this,HIEditText,HIObject,Init)
(this,ev,identifier,boundingRect);
}
/* method: Terminate */
void Terminate(Environment *ev)
{
SOM_ResolveD(this,HIEditText,HIObject,Terminate)
(this,ev);
}
/* method: Clone */
HIObject* Clone(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIObject,Clone)
(this,ev);
}
/* method: Release */
void Release(Environment *ev)
{
SOM_ResolveD(this,HIEditText,HIObject,Release)
(this,ev);
}
/* method: GetOwnerCount */
ItemCount GetOwnerCount(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIObject,GetOwnerCount)
(this,ev);
}
/* method: InitFromAERecord */
OSStatus InitFromAERecord(Environment *ev,
AESubDesc* baseInitializerData,
AESubDesc* initializerDataForClass,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIEditText,HIObject,InitFromAERecord)
(this,ev,baseInitializerData,initializerDataForClass,dataFormat);
}
/* method: WriteToAERecord */
OSStatus WriteToAERecord(Environment *ev,
AERecord* dataForSubclass,
AERecord* objectData,
HIAERecordDataFormat dataFormat)
{
return SOM_ResolveD(this,HIEditText,HIObject,WriteToAERecord)
(this,ev,dataForSubclass,objectData,dataFormat);
}
/* method: CalculateOptimalSize */
void CalculateOptimalSize(Environment *ev,
SInt16* optimalWidth,
SInt16* optimalHeight)
{
SOM_ResolveD(this,HIEditText,HIObject,CalculateOptimalSize)
(this,ev,optimalWidth,optimalHeight);
}
/* method: GetBoundingRect */
void GetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* boundingRect)
{
SOM_ResolveD(this,HIEditText,HIObject,GetBoundingRect)
(this,ev,coordinate,boundingRect);
}
/* method: SetBoundingRect */
void SetBoundingRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* newBoundingRect)
{
SOM_ResolveD(this,HIEditText,HIObject,SetBoundingRect)
(this,ev,coordinate,newBoundingRect);
}
/* method: SetPosition */
void SetPosition(Environment *ev,
HICoordinateSystem coordinate,
Point* newPosition)
{
SOM_ResolveD(this,HIEditText,HIObject,SetPosition)
(this,ev,coordinate,newPosition);
}
/* method: SetSize */
void SetSize(Environment *ev,
SInt16 width,
SInt16 height)
{
SOM_ResolveD(this,HIEditText,HIObject,SetSize)
(this,ev,width,height);
}
/* method: GetUpdateRect */
void GetUpdateRect(Environment *ev,
HICoordinateSystem coordinate,
Rect* updateRect)
{
SOM_ResolveD(this,HIEditText,HIObject,GetUpdateRect)
(this,ev,coordinate,updateRect);
}
/* method: Enable */
void Enable(Environment *ev)
{
SOM_ResolveD(this,HIEditText,HIObject,Enable)
(this,ev);
}
/* method: Disable */
void Disable(Environment *ev)
{
SOM_ResolveD(this,HIEditText,HIObject,Disable)
(this,ev);
}
/* method: IsEnabled */
boolean IsEnabled(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIObject,IsEnabled)
(this,ev);
}
/* method: Show */
void Show(Environment *ev)
{
SOM_ResolveD(this,HIEditText,HIObject,Show)
(this,ev);
}
/* method: Hide */
void Hide(Environment *ev)
{
SOM_ResolveD(this,HIEditText,HIObject,Hide)
(this,ev);
}
/* method: IsVisible */
boolean IsVisible(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIObject,IsVisible)
(this,ev);
}
/* method: HandleAppleEvent */
OSStatus HandleAppleEvent(Environment *ev,
AEEventClass eventClass,
AEEventID eventID,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIEditText,HIObject,HandleAppleEvent)
(this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
}
/* method: HandleActivate */
OSStatus HandleActivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIEditText,HIObject,HandleActivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleDeactivate */
OSStatus HandleDeactivate(Environment *ev,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIEditText,HIObject,HandleDeactivate)
(this,ev,theEvent,reply,handlerTableRef);
}
/* method: HandleNavigation */
OSStatus HandleNavigation(Environment *ev,
SInt8 key,
SInt8 keyCode,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIEditText,HIObject,HandleNavigation)
(this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseDownInContent */
OSStatus HandleMouseDownInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIEditText,HIObject,HandleMouseDownInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseMovedInContent */
OSStatus HandleMouseMovedInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIEditText,HIObject,HandleMouseMovedInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseStoppedMovingInContent */
OSStatus HandleMouseStoppedMovingInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIEditText,HIObject,HandleMouseStoppedMovingInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: HandleMouseUpInContent */
OSStatus HandleMouseUpInContent(Environment *ev,
Point* portLocalWhere,
EventModifiers modifiers,
AppleEvent* theEvent,
AppleEvent* reply,
AEHandlerTableRef handlerTableRef)
{
return SOM_ResolveD(this,HIEditText,HIObject,HandleMouseUpInContent)
(this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
}
/* method: TakeUserInputFocus */
void TakeUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIEditText,HIObject,TakeUserInputFocus)
(this,ev);
}
/* method: ReleaseUserInputFocus */
void ReleaseUserInputFocus(Environment *ev)
{
SOM_ResolveD(this,HIEditText,HIObject,ReleaseUserInputFocus)
(this,ev);
}
/* method: HasUserInputFocus */
boolean HasUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIObject,HasUserInputFocus)
(this,ev);
}
/* method: CanReleaseUserInputFocus */
boolean CanReleaseUserInputFocus(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIObject,CanReleaseUserInputFocus)
(this,ev);
}
/* method: SetUserInputFocusFlags */
void SetUserInputFocusFlags(Environment *ev,
HIUserInputFocusFlags flags)
{
SOM_ResolveD(this,HIEditText,HIObject,SetUserInputFocusFlags)
(this,ev,flags);
}
/* method: GetUserInputFocusFlags */
HIUserInputFocusFlags GetUserInputFocusFlags(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIObject,GetUserInputFocusFlags)
(this,ev);
}
/* method: SetTitle */
OSStatus SetTitle(Environment *ev,
ConstHIImageRef title,
HIAdoptionFlags disposalAdoptionFlags)
{
return SOM_ResolveD(this,HIEditText,HIObject,SetTitle)
(this,ev,title,disposalAdoptionFlags);
}
/* method: GetTitle */
OSStatus GetTitle(Environment *ev,
HIImageRef* title)
{
return SOM_ResolveD(this,HIEditText,HIObject,GetTitle)
(this,ev,title);
}
/* method: Draw */
void Draw(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIEditText,HIObject,Draw)
(this,ev,whichPort,drawRgn);
}
/* method: Erase */
void Erase(Environment *ev,
CGrafPtr whichPort,
RgnHandle eraseRgn)
{
SOM_ResolveD(this,HIEditText,HIObject,Erase)
(this,ev,whichPort,eraseRgn);
}
/* method: Invalidate */
void Invalidate(Environment *ev)
{
SOM_ResolveD(this,HIEditText,HIObject,Invalidate)
(this,ev);
}
/* method: GetDrawingMode */
HIDrawingMode GetDrawingMode(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIObject,GetDrawingMode)
(this,ev);
}
/* method: SetDrawingMode */
void SetDrawingMode(Environment *ev,
HIDrawingMode drawingMode)
{
SOM_ResolveD(this,HIEditText,HIObject,SetDrawingMode)
(this,ev,drawingMode);
}
/* method: SetBackgroundPattern */
void SetBackgroundPattern(Environment *ev,
PixPatHandle backgroundPattern)
{
SOM_ResolveD(this,HIEditText,HIObject,SetBackgroundPattern)
(this,ev,backgroundPattern);
}
/* method: GetBackgroundPattern */
PixPatHandle GetBackgroundPattern(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIObject,GetBackgroundPattern)
(this,ev);
}
/* method: Cut */
void Cut(Environment *ev)
{
SOM_ResolveD(this,HIEditText,HIObject,Cut)
(this,ev);
}
/* method: Copy */
void Copy(Environment *ev)
{
SOM_ResolveD(this,HIEditText,HIObject,Copy)
(this,ev);
}
/* method: Paste */
void Paste(Environment *ev)
{
SOM_ResolveD(this,HIEditText,HIObject,Paste)
(this,ev);
}
/* method: Clear */
void Clear(Environment *ev)
{
SOM_ResolveD(this,HIEditText,HIObject,Clear)
(this,ev);
}
/* method: GetClipboardSupportFlags */
HIClipboardSupportFlags GetClipboardSupportFlags(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIObject,GetClipboardSupportFlags)
(this,ev);
}
/* method: AddStateChangeCallback */
OSStatus AddStateChangeCallback(Environment *ev,
HIStateChangeCallbackProcPtr changedStateCallback,
HIStateChangeCallbackRef* newCallbackRef)
{
return SOM_ResolveD(this,HIEditText,HIObject,AddStateChangeCallback)
(this,ev,changedStateCallback,newCallbackRef);
}
/* method: RemoveStateChangeCallback */
OSStatus RemoveStateChangeCallback(Environment *ev,
HIStateChangeCallbackRef callbackRefToRemove)
{
return SOM_ResolveD(this,HIEditText,HIObject,RemoveStateChangeCallback)
(this,ev,callbackRefToRemove);
}
/* noself procedure: GetHIObjectFromRefLabel */
static OSStatus GetHIObjectFromRefLabel(Environment *ev,
RefLabel* identifier,
ItemCount requestedObjects,
ItemCount* totalObjects,
HIObject** theObjects)
{
return ((somTD_HIEditText_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
(ev,identifier,requestedObjects,totalObjects,theObjects);
}
/* noself procedure: GetNewHIObject */
static OSStatus GetNewHIObject(Environment *ev,
AESubDesc* objectInitializer,
HIObject** newObject)
{
return ((somTD_HIEditText_GetNewHIObject)HIObjectClassData.GetNewHIObject)
(ev,objectInitializer,newObject);
}
/* noself procedure: GetNewHIObjectFromResource */
static OSStatus GetNewHIObjectFromResource(Environment *ev,
ResID objectInitializerResourceID,
HIObject** newObject)
{
return ((somTD_HIEditText_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
(ev,objectInitializerResourceID,newObject);
}
/* method: DrawContent */
void DrawContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle drawRgn)
{
SOM_ResolveD(this,HIEditText,HIObject,DrawContent)
(this,ev,whichPort,drawRgn);
}
/* method: EraseContent */
void EraseContent(Environment *ev,
CGrafPtr whichPort,
RgnHandle regionToErase)
{
SOM_ResolveD(this,HIEditText,HIObject,EraseContent)
(this,ev,whichPort,regionToErase);
}
/* method: TranslatePoint */
void TranslatePoint(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Point* sourcePoint,
Point* translatedPoint)
{
SOM_ResolveD(this,HIEditText,HIObject,TranslatePoint)
(this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
}
/* method: TranslateRect */
void TranslateRect(Environment *ev,
HICoordinateSystem translateFrom,
HICoordinateSystem translateTo,
Rect* sourceRect,
Rect* translatedRect)
{
SOM_ResolveD(this,HIEditText,HIObject,TranslateRect)
(this,ev,translateFrom,translateTo,sourceRect,translatedRect);
}
/* method: StateChanged */
void StateChanged(Environment *ev,
HIStateChangeCodeCreator selectorCreator,
HIStateChangeCode changedCode)
{
SOM_ResolveD(this,HIEditText,HIObject,StateChanged)
(this,ev,selectorCreator,changedCode);
}
/* method: SetClipboardSupportFlags */
void SetClipboardSupportFlags(Environment *ev,
HIClipboardSupportFlags flags)
{
SOM_ResolveD(this,HIEditText,HIObject,SetClipboardSupportFlags)
(this,ev,flags);
}
/* method: Verify */
OSStatus Verify(Environment *ev)
{
return SOM_ResolveD(this,HIEditText,HIObject,Verify)
(this,ev);
}
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,HIEditText,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,HIEditText,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,HIEditText,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,HIEditText,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,HIEditText,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,HIEditText,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,HIEditText,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,HIEditText,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,HIEditText,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,HIEditText,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIEditText,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,HIEditText,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,HIEditText,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean HIEditText_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIEditText,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIEditText,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean HIEditText_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,HIEditText,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,HIEditText,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,HIEditText,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,HIEditText,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,HIEditText,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,HIEditText,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,HIEditText,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* HIEditText */
#endif /* SOM_HIEditText_xh */